import type { Result } from '@/utils/http.ts'

export interface EmployeeInfo {
  id: number,
  name: string,
  job: string,
  managerId: number,
  hireDate: Date,
  salary: number,
  commission: number,
  departmentId: number
}

export interface Page<T> {
  countId: number,
  current: number,
  pages: number,
  size: number,
  total: number
  records: T[],
}

export type resultPage = Promise<Result<{
  countId: number,
  current: number,
  pages: number,
  size: number,
  total: number
  records: EmployeeInfo[],
}>>;
